Skip to content

connection check on wolfSSH_SFTP_STAT#707

Merged
ejohnstown merged 1 commit intowolfSSL:masterfrom
kojo1:sftp-stat
Jun 18, 2024
Merged

connection check on wolfSSH_SFTP_STAT#707
ejohnstown merged 1 commit intowolfSSL:masterfrom
kojo1:sftp-stat

Conversation

@kojo1
Copy link
Copy Markdown
Contributor

@kojo1 kojo1 commented Jun 3, 2024

https://wolfssl.zendesk.com/agent/tickets/17964
Issue:
wolfSSH_SFTP_STAT doesn't check the server connection in it.
If it is disconnected after wolfSSH_connect, the API alone doesn't detect
the disconnection and return WS_SUCCESS.

The issue is only the case wolfSSH_SFTP_STAT alone is used. sftpclient uses wolfSSH_SFTP_STAT
with stream read/write so it detects the missing connection.

@kojo1 kojo1 requested a review from ejohnstown June 3, 2024 00:39
@ejohnstown ejohnstown merged commit e2aadb1 into wolfSSL:master Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants